<template>
    <div class="error">
        <el-empty  description="404！ 访问的页面不存在！">
            <el-button type="primary" @click="go_order">去首页</el-button>
        </el-empty>
    </div>
</template>

<script setup>
    import { RouterLink, RouterView, useRouter } from 'vue-router'
    const router = useRouter();
    
    const go_order = ()=>{
        router.push('/');
    }
</script>

<style scoped>
    .error{
        position: absolute;left: 50%;top: 40%;
        transform: translate(-50%,-50%);
    }
</style>